class Test {
	static main(args) {
		BookManager bm = BookManager.getInstance(null);
	   def book = new Book(name:"Next Generation Java Testing",totalPage:509,currentPage:509)
	   bm.saveBook(book)
	   book = new Book(name:"Manning Groovy in Action",totalPage:694,currentPage:111)
	   bm.saveBook(book)
	  def books =  bm.getAllBooks()
	  println "ALL $books.size Books" 
	  for(b in books){
	  	println b.name
		println b.totalPage
		println b.currentPage
	  }
	 
	}
}
